import Vue from 'vue'
import Router from 'vue-router'

import Home from '@/views/home/home'
import UEditor from '@/views/editor/ueditor'
import MarkDown from '@/views/editor/markdown'
import WangEditor from '@/views/editor/wangeditor'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        component: Home,
        children: [{
            path: '/ueditor',
            component: UEditor
        }, {
            path: '/markdown',
            component: MarkDown
        }, {
            path: '/wangeditor',
            component: WangEditor
        }],
    }, ]
})